﻿///////////////////////////////////////////////////////////////
// This is generated code. If you modify this code, be aware
// of the fact that when you re-generate the code, your changes
// are lost. If you want to keep your changes, make this file read-only
// when you have finished your changes, however it is recommended that
// you inherit from this class to extend the functionality of this generated
// class or you modify / extend the templates used to generate this code.
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 1.0.2005.1
// Code is generated on: October 21, 2008 12:02:14 AM
// Code is generated using templates: C# template set for SqlServer (1.0.2005.1)
// Templates vendor: Solutions Design.
// Templates version: 1.0.2005.1.111705
//////////////////////////////////////////////////////////////
using System;
using System.Data;

using Ultimate.DAL;
using Ultimate.DAL.HelperClasses;

using SD.LLBLGen.Pro.ORMSupportClasses;

namespace Ultimate.DAL.FactoryClasses
{
	/// <summary>
	/// Factory class for IEntityField instances, used in IEntityFields instances.
	/// </summary>
	public partial class EntityFieldFactory
	{
		/// <summary>
		/// Private CTor, no instantiation possible.
		/// </summary>
		private EntityFieldFactory()
		{
		}

	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the Aspnet_UsersEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(Aspnet_UsersFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case Aspnet_UsersFieldIndex.ApplicationId:
					fieldToReturn = new EntityField("ApplicationId", typeof(System.Guid), "Aspnet_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Guid)), @"dbo", "aspnet_Users", "ApplicationId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, false, "", false, null, typeof(System.Guid), (int)fieldIndex);
					break;
				case Aspnet_UsersFieldIndex.UserId:
					fieldToReturn = new EntityField("UserId", typeof(System.Guid), "Aspnet_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Guid)), @"dbo", "aspnet_Users", "UserId", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, true, false, "", false, null, typeof(System.Guid), (int)fieldIndex);
					break;
				case Aspnet_UsersFieldIndex.UserName:
					fieldToReturn = new EntityField("UserName", typeof(System.String), "Aspnet_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "aspnet_Users", "UserName", false, (int)SqlDbType.NVarChar, 256, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case Aspnet_UsersFieldIndex.LoweredUserName:
					fieldToReturn = new EntityField("LoweredUserName", typeof(System.String), "Aspnet_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "aspnet_Users", "LoweredUserName", false, (int)SqlDbType.NVarChar, 256, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case Aspnet_UsersFieldIndex.MobileAlias:
					fieldToReturn = new EntityField("MobileAlias", typeof(System.String), "Aspnet_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "aspnet_Users", "MobileAlias", true, (int)SqlDbType.NVarChar, 16, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case Aspnet_UsersFieldIndex.IsAnonymous:
					fieldToReturn = new EntityField("IsAnonymous", typeof(System.Boolean), "Aspnet_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "aspnet_Users", "IsAnonymous", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case Aspnet_UsersFieldIndex.LastActivityDate:
					fieldToReturn = new EntityField("LastActivityDate", typeof(System.DateTime), "Aspnet_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "aspnet_Users", "LastActivityDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the Cs_UsersEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(Cs_UsersFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case Cs_UsersFieldIndex.MembershipID:
					fieldToReturn = new EntityField("MembershipID", typeof(System.Guid), "Cs_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Guid)), @"dbo", "cs_Users", "MembershipID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, false, "", true, null, typeof(System.Guid), (int)fieldIndex);
					break;
				case Cs_UsersFieldIndex.UserID:
					fieldToReturn = new EntityField("UserID", typeof(System.Int32), "Cs_UsersEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "cs_Users", "UserID", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case Cs_UsersFieldIndex.ForceLogin:
					fieldToReturn = new EntityField("ForceLogin", typeof(System.Boolean), "Cs_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "cs_Users", "ForceLogin", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case Cs_UsersFieldIndex.UserAccountStatus:
					fieldToReturn = new EntityField("UserAccountStatus", typeof(System.Int16), "Cs_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int16)), @"dbo", "cs_Users", "UserAccountStatus", false, (int)SqlDbType.SmallInt, 0, 0, 5, false, false, "", false, null, typeof(System.Int16), (int)fieldIndex);
					break;
				case Cs_UsersFieldIndex.AppUserToken:
					fieldToReturn = new EntityField("AppUserToken", typeof(System.String), "Cs_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "cs_Users", "AppUserToken", true, (int)SqlDbType.VarChar, 128, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case Cs_UsersFieldIndex.LastActivity:
					fieldToReturn = new EntityField("LastActivity", typeof(System.DateTime), "Cs_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "cs_Users", "LastActivity", false, (int)SqlDbType.DateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case Cs_UsersFieldIndex.LastAction:
					fieldToReturn = new EntityField("LastAction", typeof(System.String), "Cs_UsersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "cs_Users", "LastAction", true, (int)SqlDbType.NVarChar, 1024, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the FieldEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(FieldFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case FieldFieldIndex.FieldID:
					fieldToReturn = new EntityField("FieldID", typeof(System.Int32), "FieldEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Field", "FieldID", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case FieldFieldIndex.LocationID:
					fieldToReturn = new EntityField("LocationID", typeof(System.Int32), "FieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Field", "LocationID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case FieldFieldIndex.FieldName:
					fieldToReturn = new EntityField("FieldName", typeof(System.String), "FieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Field", "FieldName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case FieldFieldIndex.Quality:
					fieldToReturn = new EntityField("Quality", typeof(System.Int32), "FieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Field", "Quality", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case FieldFieldIndex.Description:
					fieldToReturn = new EntityField("Description", typeof(System.String), "FieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Field", "Description", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the GameEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(GameFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case GameFieldIndex.GameID:
					fieldToReturn = new EntityField("GameID", typeof(System.Int32), "GameEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "GameID", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.LeagueID:
					fieldToReturn = new EntityField("LeagueID", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "LeagueID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.FieldID:
					fieldToReturn = new EntityField("FieldID", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "FieldID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.GameDay:
					fieldToReturn = new EntityField("GameDay", typeof(System.DateTime), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "Game", "GameDay", true, (int)SqlDbType.SmallDateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case GameFieldIndex.HomeTeamID:
					fieldToReturn = new EntityField("HomeTeamID", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "HomeTeamID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.AwayTeamID:
					fieldToReturn = new EntityField("AwayTeamID", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "AwayTeamID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.HomeHomeScore:
					fieldToReturn = new EntityField("HomeHomeScore", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "HomeHomeScore", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.HomeAwayScore:
					fieldToReturn = new EntityField("HomeAwayScore", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "HomeAwayScore", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.AwayHomeScore:
					fieldToReturn = new EntityField("AwayHomeScore", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "AwayHomeScore", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.AwayAwayScore:
					fieldToReturn = new EntityField("AwayAwayScore", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "AwayAwayScore", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.HomeSpiritScore:
					fieldToReturn = new EntityField("HomeSpiritScore", typeof(System.Double), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Double)), @"dbo", "Game", "HomeSpiritScore", true, (int)SqlDbType.Float, 0, 0, 38, false, false, "", false, null, typeof(System.Double), (int)fieldIndex);
					break;
				case GameFieldIndex.AwaySpiritScore:
					fieldToReturn = new EntityField("AwaySpiritScore", typeof(System.Double), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Double)), @"dbo", "Game", "AwaySpiritScore", true, (int)SqlDbType.Float, 0, 0, 38, false, false, "", false, null, typeof(System.Double), (int)fieldIndex);
					break;
				case GameFieldIndex.HomeWharmbyPlayerID:
					fieldToReturn = new EntityField("HomeWharmbyPlayerID", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "HomeWharmbyPlayerID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.AwayWharmbyPlayerID:
					fieldToReturn = new EntityField("AwayWharmbyPlayerID", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "AwayWharmbyPlayerID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.Description:
					fieldToReturn = new EntityField("Description", typeof(System.String), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Game", "Description", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case GameFieldIndex.EnteredByID:
					fieldToReturn = new EntityField("EnteredByID", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "EnteredByID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.ChangedByID:
					fieldToReturn = new EntityField("ChangedByID", typeof(System.Int32), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Game", "ChangedByID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case GameFieldIndex.GameTime:
					fieldToReturn = new EntityField("GameTime", typeof(System.String), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Game", "GameTime", true, (int)SqlDbType.NVarChar, 5, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case GameFieldIndex.Grouping:
					fieldToReturn = new EntityField("Grouping", typeof(System.String), "GameEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Game", "Grouping", true, (int)SqlDbType.NVarChar, 64, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the LeagueEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(LeagueFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case LeagueFieldIndex.LeagueID:
					fieldToReturn = new EntityField("LeagueID", typeof(System.Int32), "LeagueEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "League", "LeagueID", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case LeagueFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "League", "Name", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case LeagueFieldIndex.RegistrationOpen:
					fieldToReturn = new EntityField("RegistrationOpen", typeof(System.Boolean), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "League", "RegistrationOpen", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case LeagueFieldIndex.Info:
					fieldToReturn = new EntityField("Info", typeof(System.String), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "League", "Info", true, (int)SqlDbType.Text, 2147483647, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case LeagueFieldIndex.TeamFee:
					fieldToReturn = new EntityField("TeamFee", typeof(System.Decimal), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Decimal)), @"dbo", "League", "TeamFee", true, (int)SqlDbType.Money, 0, 4, 19, false, false, "", false, null, typeof(System.Decimal), (int)fieldIndex);
					break;
				case LeagueFieldIndex.PlayerFee:
					fieldToReturn = new EntityField("PlayerFee", typeof(System.Decimal), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Decimal)), @"dbo", "League", "PlayerFee", true, (int)SqlDbType.Money, 0, 4, 19, false, false, "", false, null, typeof(System.Decimal), (int)fieldIndex);
					break;
				case LeagueFieldIndex.StartDate:
					fieldToReturn = new EntityField("StartDate", typeof(System.DateTime), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "League", "StartDate", true, (int)SqlDbType.SmallDateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case LeagueFieldIndex.EndDate:
					fieldToReturn = new EntityField("EndDate", typeof(System.DateTime), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "League", "EndDate", true, (int)SqlDbType.SmallDateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case LeagueFieldIndex.IndividualsOnly:
					fieldToReturn = new EntityField("IndividualsOnly", typeof(System.Boolean), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "League", "IndividualsOnly", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case LeagueFieldIndex.RoleName:
					fieldToReturn = new EntityField("RoleName", typeof(System.String), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "League", "RoleName", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case LeagueFieldIndex.Active:
					fieldToReturn = new EntityField("Active", typeof(System.Boolean), "LeagueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "League", "Active", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the LocationEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(LocationFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case LocationFieldIndex.LocationID:
					fieldToReturn = new EntityField("LocationID", typeof(System.Int32), "LocationEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Location", "LocationID", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case LocationFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "LocationEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Location", "Name", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case LocationFieldIndex.NumberOfFields:
					fieldToReturn = new EntityField("NumberOfFields", typeof(System.Int32), "LocationEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Location", "NumberOfFields", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case LocationFieldIndex.Address:
					fieldToReturn = new EntityField("Address", typeof(System.String), "LocationEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Location", "Address", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the PlayerEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(PlayerFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case PlayerFieldIndex.PlayerID:
					fieldToReturn = new EntityField("PlayerID", typeof(System.Int32), "PlayerEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Player", "PlayerID", false, (int)SqlDbType.Int, 0, 0, 10, false, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case PlayerFieldIndex.UserID:
					fieldToReturn = new EntityField("UserID", typeof(System.Guid), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Guid)), @"dbo", "Player", "UserID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, true, false, "", true, null, typeof(System.Guid), (int)fieldIndex);
					break;
				case PlayerFieldIndex.FirstName:
					fieldToReturn = new EntityField("FirstName", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "FirstName", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.LastName:
					fieldToReturn = new EntityField("LastName", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "LastName", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.Email:
					fieldToReturn = new EntityField("Email", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "Email", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.Address:
					fieldToReturn = new EntityField("Address", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "Address", true, (int)SqlDbType.NVarChar, 150, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.City:
					fieldToReturn = new EntityField("City", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "City", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.Province:
					fieldToReturn = new EntityField("Province", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "Province", true, (int)SqlDbType.NVarChar, 20, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.PostalCode:
					fieldToReturn = new EntityField("PostalCode", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "PostalCode", true, (int)SqlDbType.NVarChar, 7, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.PhoneNumber:
					fieldToReturn = new EntityField("PhoneNumber", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "PhoneNumber", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.SkillLevel:
					fieldToReturn = new EntityField("SkillLevel", typeof(System.Int32), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Player", "SkillLevel", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case PlayerFieldIndex.AdjustedSkillLevel:
					fieldToReturn = new EntityField("AdjustedSkillLevel", typeof(System.Int32), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Player", "AdjustedSkillLevel", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case PlayerFieldIndex.Male:
					fieldToReturn = new EntityField("Male", typeof(System.Boolean), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Player", "Male", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case PlayerFieldIndex.Birthdate:
					fieldToReturn = new EntityField("Birthdate", typeof(System.DateTime), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "Player", "Birthdate", true, (int)SqlDbType.SmallDateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case PlayerFieldIndex.Password:
					fieldToReturn = new EntityField("Password", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "Password", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.CreatedDate:
					fieldToReturn = new EntityField("CreatedDate", typeof(System.DateTime), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "Player", "CreatedDate", true, (int)SqlDbType.SmallDateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case PlayerFieldIndex.EditedBy:
					fieldToReturn = new EntityField("EditedBy", typeof(System.String), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Player", "EditedBy", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case PlayerFieldIndex.AdminLevel:
					fieldToReturn = new EntityField("AdminLevel", typeof(System.Int32), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Player", "AdminLevel", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case PlayerFieldIndex.IsUpdated:
					fieldToReturn = new EntityField("IsUpdated", typeof(System.Boolean), "PlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Player", "isUpdated", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the RoleEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(RoleFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case RoleFieldIndex.RoleID:
					fieldToReturn = new EntityField("RoleID", typeof(System.Int32), "RoleEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Role", "RoleID", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case RoleFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Role", "Name", true, (int)SqlDbType.Char, 10, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the TeamEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(TeamFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case TeamFieldIndex.TeamID:
					fieldToReturn = new EntityField("TeamID", typeof(System.Int32), "TeamEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Team", "TeamID", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case TeamFieldIndex.LeagueID:
					fieldToReturn = new EntityField("LeagueID", typeof(System.Int32), "TeamEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Team", "LeagueID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case TeamFieldIndex.TeamName:
					fieldToReturn = new EntityField("TeamName", typeof(System.String), "TeamEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Team", "TeamName", true, (int)SqlDbType.NVarChar, 150, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case TeamFieldIndex.Paid:
					fieldToReturn = new EntityField("Paid", typeof(System.Boolean), "TeamEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Team", "Paid", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case TeamFieldIndex.PaidDate:
					fieldToReturn = new EntityField("PaidDate", typeof(System.DateTime), "TeamEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "Team", "PaidDate", true, (int)SqlDbType.SmallDateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case TeamFieldIndex.AmountPaid:
					fieldToReturn = new EntityField("AmountPaid", typeof(System.Decimal), "TeamEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Decimal)), @"dbo", "Team", "AmountPaid", true, (int)SqlDbType.Money, 0, 4, 19, false, false, "", false, null, typeof(System.Decimal), (int)fieldIndex);
					break;
				case TeamFieldIndex.Closed:
					fieldToReturn = new EntityField("Closed", typeof(System.Boolean), "TeamEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Team", "Closed", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case TeamFieldIndex.Grouping:
					fieldToReturn = new EntityField("Grouping", typeof(System.String), "TeamEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Team", "Grouping", true, (int)SqlDbType.NVarChar, 64, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the TeamPlayerEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(TeamPlayerFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case TeamPlayerFieldIndex.PlayerID:
					fieldToReturn = new EntityField("PlayerID", typeof(System.Int32), "TeamPlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "TeamPlayer", "PlayerID", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case TeamPlayerFieldIndex.TeamID:
					fieldToReturn = new EntityField("TeamID", typeof(System.Int32), "TeamPlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "TeamPlayer", "TeamID", false, (int)SqlDbType.Int, 0, 0, 10, true, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case TeamPlayerFieldIndex.UserID:
					fieldToReturn = new EntityField("UserID", typeof(System.Guid), "TeamPlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Guid)), @"dbo", "TeamPlayer", "UserID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, true, false, "", true, null, typeof(System.Guid), (int)fieldIndex);
					break;
				case TeamPlayerFieldIndex.RoleID:
					fieldToReturn = new EntityField("RoleID", typeof(System.Int32), "TeamPlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "TeamPlayer", "RoleID", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case TeamPlayerFieldIndex.WaiverSigned:
					fieldToReturn = new EntityField("WaiverSigned", typeof(System.Boolean), "TeamPlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "TeamPlayer", "WaiverSigned", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case TeamPlayerFieldIndex.FriendsList:
					fieldToReturn = new EntityField("FriendsList", typeof(System.String), "TeamPlayerEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "TeamPlayer", "FriendsList", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
	


		#region Included Code

		#endregion
	}
}
